/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询列表 /ttFiAccountDlr/listAccountSearchDlr	POST
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiAccountDlr/listAccountSearchDlr`, params)

// 导出	 /ttFiAccountDlr/exportAccountSearchDlr	POST
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiAccountDlr/exportAccountSearchDlr`, params, {
  responseType: 'blob'
})

// 资金账户类型
export const getFiAccountType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)

// 预扣详情列表	/ttFiAccountDlr/listWithholding?deliveryId=1	GET
export const detailInfo = (Id) => axios.get(`${SERVER.WHOLESALES}/ttFiAccountDlr/listWithholding?deliveryId=${Id}`)

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
